﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Qreed.Windows.ComponentModel
{
    /// <summary>
    /// The event arguments used by <see cref="PropertyBag"/>
    /// </summary>
    public class PropertyBagEventArgs : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="PropertyBagEventArgs"/> class.
        /// </summary>
        /// <param name="item">The item.</param>
        /// <param name="value">The value.</param>
        internal PropertyBagEventArgs(PropertyBagItem item, object value)
        {
            _item = item;
            _value = value;
        }

        private PropertyBagItem  _item;
        /// <summary>
        /// Gets the item.
        /// </summary>
        /// <value>The item.</value>
        public PropertyBagItem  Item
        {
            get { return _item; }
        }

        private object _value;
        /// <summary>
        /// Gets or sets the value.
        /// </summary>
        /// <value>The value.</value>
        public object Value
        {
            get { return _value; }
            set { _value = value; }
        }
    }
}
